﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CodeGenerator.Core
{
    /// <summary>
    /// 参数配置
    /// </summary>
    public class MainSetting
    {
        #region Asp.Net
        /// <summary>
        /// 命名空间
        /// </summary>
        private string nameSpace;
        public string NameSpace
        {
            get
            {
                if (string.IsNullOrEmpty(nameSpace))
                {
                    return "HPK.Application";
                }
                return nameSpace;
            }
            set
            {
                nameSpace = value;
            }
        }

        /// <summary>
        /// 区域名称
        /// </summary>
        public string AreaName { get; set; }
        
        /// <summary>
        /// 输出目录
        /// </summary>
        private string outputDir;
        public string OutputDir
        {
            get
            {
                if (string.IsNullOrEmpty(outputDir))
                {
                    return @"c:\output";
                }
                return outputDir;
            }
            set
            {
                outputDir = value;
            }
        }
        
        
        /// <summary>
        /// 过滤表前缀
        /// </summary>
        public string Prefix { get; set; } 
        #endregion

        #region Mybatis
        /// <summary>
        /// 实体包名
        /// </summary>
        public string EntityPackage { get; set; }

        /// <summary>
        /// Dao包名
        /// </summary>
        public string DaoPackage { get; set; }


        public string Mapping { get; set; }

        /// <summary>
        /// Iservice包名
        /// </summary>
        public string IServicePackage { get; set; }

        /// <summary>
        /// Service包名
        /// </summary>
        public string ServicePackage { get; set; }
        #endregion
    }
}
